import { request } from '@umijs/max';
import { getAccessToken, getPlatTypeFromDomain } from './utils'

export default (url: string, config: any) => {
  return request(url, {
    ...config,
    headers: {
      "jwt-token": getAccessToken(getPlatTypeFromDomain()),
    },
  });
};
